package inet.app.vod.object;

import java.io.Serializable;

import inet.app.vod.config.AppConstants;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

public class SlideObject implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@SerializedName("ID")
	protected String id;

	@SerializedName("IMG")
	protected String img;

	@SerializedName("TITLE")
	protected String title;

	@SerializedName("FB_LINK")
	protected String fbLink;

	public SlideObject() {
	}

	public SlideObject(String id, String img, String title) {
		this.id = id;
		this.img = img;
		this.title = title;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getImg() {
		if (!TextUtils.isEmpty(img) && !img.startsWith("http")) {
			return AppConstants.HOST_IMAGE_URL + img;
		}
		return img;
	}

	public void setImg(String img) {
		if (!TextUtils.isEmpty(img) && !img.startsWith("http")) {
			this.img = AppConstants.HOST_IMAGE_URL + img;
		} else {
			this.img = img;
		}
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFbLink() {
		return fbLink;
	}

	public void setFbLink(String fbLink) {
		this.fbLink = fbLink;
	}

}
